package org.edu.modules.center.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import java.io.Serializable;
import java.util.Map;
import org.edu.modules.center.entity.VeTeachHomework;
import org.edu.modules.center.mapper.VeTeachHomeworkMapper;
import org.edu.modules.center.service.IVeTeachHomeworkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class VeTeachHomeworkServiceImpl
        extends ServiceImpl<VeTeachHomeworkMapper, VeTeachHomework>
        implements IVeTeachHomeworkService
{
    @Autowired
    VeTeachHomeworkMapper veTeachHomeworkMapper;

    public Map<String, Object> getMapById(Serializable id)
    {
        return this.veTeachHomeworkMapper.selectMapById(id);
    }

    public IPage<Map<String, Object>> unfinishPageMaps(Page<Map<String, Object>> page, QueryWrapper<VeTeachHomework> queryWrapper)
    {
        return ((VeTeachHomeworkMapper)getBaseMapper()).selectUnMapsPage(page, queryWrapper);
    }
}
